<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewMunicipioTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" styleClass="ajustaListaMensagemErro"  layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="list"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewMunicipioLabel_munCd}"/>
                    <h:outputText value="#{municipioController.selected.munCd}" title="#{bundle.ViewMunicipioTitle_munCd}"/>
                    <h:outputText value="#{bundle.ViewMunicipioLabel_munCdIbge}"/>
                    <h:outputText value="#{municipioController.selected.munCdIbge}" title="#{bundle.ViewMunicipioTitle_munCdIbge}"/>
                    <h:outputText value="#{bundle.ViewMunicipioLabel_munNm}"/>
                    <h:outputText value="#{municipioController.selected.munNm}" title="#{bundle.ViewMunicipioTitle_munNm}"/>
                    <h:outputText value="#{bundle.ViewMunicipioLabel_munSg}"/>
                    <h:outputText value="#{municipioController.selected.munSg}" title="#{bundle.ViewMunicipioTitle_munSg}"/>
                    <h:outputText value="#{bundle.ViewMunicipioLabel_munArTotalKm2}"/>
                    <h:outputText value="#{municipioController.selected.munArTotalKm2}" title="#{bundle.ViewMunicipioTitle_munArTotalKm2}"/>
                    <h:outputText value="#{bundle.ViewMunicipioLabel_munQtPopulacao}"/>
                    <h:outputText value="#{municipioController.selected.munQtPopulacao}" title="#{bundle.ViewMunicipioTitle_munQtPopulacao}"/>
                    <h:outputText value="#{bundle.ViewMunicipioLabel_munGmPoligono}"/>
                    <h:outputText value="#{municipioController.selected.munGmPoligono}" title="#{bundle.ViewMunicipioTitle_munGmPoligono}"/>
                    <h:outputText value="#{bundle.ViewMunicipioLabel_munMicCd}"/>
                    <h:outputText value="#{municipioController.selected.munMicCd}" title="#{bundle.ViewMunicipioTitle_munMicCd}"/>
                    <h:outputText value="#{bundle.ViewMunicipioLabel_munArUrbanaKm2}"/>
                    <h:outputText value="#{municipioController.selected.munArUrbanaKm2}" title="#{bundle.ViewMunicipioTitle_munArUrbanaKm2}"/>
                    <h:outputText value="#{bundle.ViewMunicipioLabel_munArRuralKm2}"/>
                    <h:outputText value="#{municipioController.selected.munArRuralKm2}" title="#{bundle.ViewMunicipioTitle_munArRuralKm2}"/>
                    <h:outputText value="#{bundle.ViewMunicipioLabel_munDtEmancipacao}"/>
                    <h:outputText value="#{municipioController.selected.munDtEmancipacao}" title="#{bundle.ViewMunicipioTitle_munDtEmancipacao}">
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:outputText>
                    <h:outputText value="#{bundle.ViewMunicipioLabel_munAaReferencia}"/>
                    <h:outputText value="#{municipioController.selected.munAaReferencia}" title="#{bundle.ViewMunicipioTitle_munAaReferencia}"/>
                    <h:outputText value="#{bundle.ViewMunicipioLabel_munNmMunicipioOrigem}"/>
                    <h:outputText value="#{municipioController.selected.munNmMunicipioOrigem}" title="#{bundle.ViewMunicipioTitle_munNmMunicipioOrigem}"/>
                    <h:outputText value="#{bundle.ViewMunicipioLabel_ufdCd}"/>
                    <h:outputText value="#{municipioController.selected.ufdCd}" title="#{bundle.ViewMunicipioTitle_ufdCd}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{municipioController.destroyAndView}" value="#{bundle.ViewMunicipioDestroyLink}"/>
                <br />
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewMunicipioEditLink}"/>
                <br />
                <h:commandLink action="#{municipioController.prepareCreate}" value="#{bundle.ViewMunicipioCreateLink}" />
                <br />
                <h:commandLink action="#{municipioController.prepareList}" value="#{bundle.ViewMunicipioShowAllLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ViewMunicipioIndexLink}" action="/index" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
